<template>
	<div class="scroll-top-btn" @click="scrollTop">
	</div>
</template>

<script setup>
	const scrollTop = ()=>{
		uni.pageScrollTo({
			scrollTop: 0,
			duration: 300
		});
	}
</script>

<style lang="scss" scoped>
	.scroll-top-btn{
		position: fixed;
		right:20rpx;
		bottom:30%;
		width:60rpx;
		height:60rpx;
		border-radius: 50%;
		background: url('../../static/top-btn2.png') no-repeat center/contain;
	}
</style>
